
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
  vector<int> text(10);
  for (int i = 0; i < 10; i++) {
    cin >> text[i];
  }
  for (auto vector_begin = text.begin(), vector_end = text.end();
       vector_begin != vector_end; vector_begin++) {
    vector_end--;
    cout << *vector_begin + *vector_end << endl;
  }
  return 0;
}